<?php

namespace Database\Seeders;

use App\Models\WebsiteConfig;
use Illuminate\Database\Seeder;

class WebSiteConfigTableSeeder extends Seeder
{
    public function run(): void
    {
        // 清空配置表
        WebSiteConfig::query()->truncate();

        // 网站名称
        WebsiteConfig::query()->insert([
            [
                'label' => '网站名称',
                'key' => 'name',
                'value' => '预约收银系统',
                'type' => 'text',
                'remark' => '网站名称',
                'group' => 'web',
            ],
            [
                'label' => '网站简称',
                'key' => 'short_name',
                'value' => '预约收银',
                'type' => 'text',
                'remark' => '网站简称',
                'group' => 'web',
            ],
            [
                'label' => '网站标题',
                'key' => 'title',
                'value' => '预约收银',
                'type' => 'text',
                'remark' => '网站标题',
                'group' => 'web',
            ],
            [
                'label' => '网站描述',
                'key' => 'description',
                'value' => '预约收银系统',
                'type' => 'text',
                'remark' => '网站描述',
                'group' => 'web',
            ],
            [
                'label' => '网站关键词',
                'key' => 'keywords',
                'value' => '预约,收银,系统',
                'type' => 'text',
                'remark' => '网站关键词',
                'group' => 'web',
            ],
            [
                'label' => '网站logo',
                'key' => 'logo',
                'value' => '/static/images/logo.png',
                'type' => 'text',
                'remark' => '网站logo',
                'group' => 'web',
            ],
            [
                'label' => '后台logo',
                'key' => 'admin_logo',
                'value' => '/static/images/logo.png',
                'type' => 'text',
                'remark' => '后台logo',
                'group' => 'admin',
            ],
            [
                'label' => '后台名称',
                'key' => 'admin_name',
                'value' => '预约收银系统',
                'type' => 'text',
                'remark' => '后台名称',
                'group' => 'admin',
            ],
            [
                'label' => '备案号',
                'key' => 'icp',
                'value' => '皖ICP备2025000000号',
                'type' => 'text',
                'remark' => '备案号',
                'group' => 'web',
            ],
            [
                'label' => '网站版权',
                'key' => 'copyright',
                'value' => '@2025 预约收银系统',
                'type' => 'text',
                'remark' => '网站版权',
                'group' => 'web',
            ],
            // 联系人
            [
                'label' => '联系人',
                'key' => 'contact_name',
                'value' => '张三',
                'type' => 'text',
                'remark' => '联系人',
                'group' => 'web',
            ],
            [
                'label' => '联系电话',
                'key' => 'contact_phone',
                'value' => '13800000000',
                'type' => 'text',
                'remark' => '联系电话',
                'group' => 'web',
            ],
            [
                'label' => '联系邮箱',
                'key' => 'contact_email',
                'value' => 'zhangsan@example.com',
                'type' => 'text',
                'remark' => '联系邮箱',
                'group' => 'web',
            ],
            [
                'label' => '联系地址',
                'key' => 'contact_address',
                'value' => '中国 安徽省 合肥市 合肥市中心',
                'type' => 'text',
                'remark' => '联系地址',
                'group' => 'web',
            ],
            [
                'label' => '公众号二维码',
                'key' => 'wechat_qrcode',
                'value' => '',
                'type' => 'text',
                'remark' => '公众号二维码',
                'group' => 'web',
            ],
            [
                'label' => '企业微信二维码',
                'key' => 'wechat_work_qrcode',
                'value' => '',
                'type' => 'text',
                'remark' => '企业微信二维码',
                'group' => 'web',
            ],
            [
                'label' => 'QQ二维码',
                'key' => 'qq_qrcode',
                'value' => '',
                'type' => 'text',
                'remark' => 'QQ二维码',
                'group' => 'web',
            ],
        ]);
    }
}
